/* 
    以下为所有页面js整体配置

    //1.公用样式
    //2.公用js
    //3.当前页面效果
*/

 //1.公用样式
 require('../../assets/css/index.js')
 //当前页面样式
 require('./ad.less')

    //2.公用js
let dom=require('../../utils/dom.js');
let http=require('../../utils/http.js');

    //3.当前页面效果
// console.log(dom);
//相当于文档加载事件
dom.ready(function(){
    let timebox=document.querySelector('.timebox')
    let s=5
    let num=setInterval(function(){
        s--;
        let times='';
        if(s>=1){
            times=`${s}s | 跳过`;
            timebox.innerText=times;
        }else{
            window.location.href='./register.html'
            clearInterval(num)
        }
    },1000)
    timebox.addEventListener('click',function(){
        window.location.href='./register.html'
    })






        
})
